<?php
namespace app\common\model;

use think\Model;
use think\Db;

class Order extends Model
{
	public $total_price;
	public function getCreateTimeAttr($val){
		return date('Y-m-d H:i:s',$val);
	}
	public function getPayAttr($val){
		$status=[0=>'未支付',1=>'已支付',2=>'待发货',3=>'已发货',4=>'待评价',5=>'已评价'];
		return $status[$val];
	}
}